<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- 顶部栏开始 -->
<div class="topbar">
  <div class="topbar_cont">
    <p style=" float:left;">欢迎光临怡天网！</p>
    <ul>
      <li><a href="#" target="_blank">手机客户端</a></li>
      <li><a href="${base}/my/home" target="_blank">会员空间</a></li>
      <li style="width:94px; border:0;"><a href="#" target="_blank">我的爱问医生</a></li>
    </ul>
  </div>
</div>

<!-- 头部开始 -->
<div class="header">
  <div class="header_logo"><a href="${base}/index/list"><img src="${base}/images/top_logo.jpg" alt="Logo" /></a></div>
  <div class="header_search">
    <input type="text" class="header_search_input" placeholder="搜索" />
    <input type="button" value="搜索" class="header_search_btnok" />
    <p>热门搜索：<a href="#" target="_blank">体检</a> <a href="#" target="_blank">口腔</a></p>
  </div>
  <div class="header_tel"><img src="${base}/images/top_tel.jpg" /></div>
</div>

<!-- 导航 -->
<div class="nav">
  <div class="nav_mian">
    <ul>
        <a href="${base}/index/list" ><li <c:if test="${param.menuIdx == null || param.menuIdx == 0}">class="nav_active"</c:if>>首页</li></a>
        <%--<li <c:if test="${param.menuIdx == 1}">class="nav_active"</c:if>><a href="#">预约体检</a></li>--%>
        <a href="${base}/my/home"><li <c:if test="${param.menuIdx == 2}">class="nav_active"</c:if>>会员中心</li></a>
        <a href="${base}/institution/index"><li <c:if test="${param.menuIdx == 6}">class="nav_active"</c:if>>机构查询</li></a>
        <li <c:if test="${param.menuIdx == 8}">class="nav_active"</c:if>><a href="#">报告查询</a></li>
        <li <c:if test="${param.menuIdx == 3}">class="nav_active"</c:if>><a href="#">合作伙伴</a></li>
        <li <c:if test="${param.menuIdx == 4}">class="nav_active"</c:if>><a href="#">VIP服务</a></li>
        <a href="${base}/news/index"><li <c:if test="${param.menuIdx == 5}">class="nav_active"</c:if>>公告新闻</li></a>
        <a href="${base}/about/index"><li <c:if test="${param.menuIdx == 7}">class="nav_active"</c:if>>关于我们</li></a>
    </ul>
    <div class="nav_toolbar">
      <c:choose>
        <c:when test="${sessionScope.loginUser != null}">
          <c:set var="user" value="${sessionScope.loginUser}"/>
          <div class="nav_login">欢迎您，<a href="${base}/my/home"><c:choose><c:when test="${user.nick != null && user.nick!=\"\"}">${user.nick}</c:when><c:otherwise>${user.mobile}</c:otherwise></c:choose></a></div>
          <div class="nav_login" style="border-right:1px solid #FFF;"><a href="${base}/my/logout">退出</a></div>
        </c:when>
        <c:otherwise>
          <div class="nav_login"><a href="${base}/toLogin">注册</a></div>
          <div class="nav_login" style="border-right:1px solid #FFF;"><a href="${base}/toLogin">登陆</a></div>
        </c:otherwise>
      </c:choose>
      <div class="nav_login"><a href="#">购物车&nbsp;0</a></div>
    </div>
  </div>
</div>

<div class="clearfloat"></div>